<?php
/**
 * Base class for objects representing database rows
 *
 * @package Concerto
 * @subpackage Models
 * @author Jason Raede <jason@torchdm.com>
 */
namespace application\models;

class DBObject {
	public function __call($function, $arguments) {
		$action = substr($function, 0, 3);
		$property = strtolower($function[3]).substr($function, 4);
		switch($action) {
			case 'set':
				$this->$property = $arguments[0];
				break;
			case 'get':
				return $this->$property;
				break;
		}
	}
}

?>